<script>
  import messageRouter from '../common/MessageRouter'

  export default {
    name: 'BaseComponents',

    created(){
      //注册websocket/postmessage消息监听
      if(this.listener){
          console.log("has listener");
      }else {
          console.log("has not listener");
      }

    },

    beforeDestroy(){
      //注销监听
    },

    methods: {
      ajax(){//xmlhttprequest

      },

      postMessage(){//html5 postmessage

      },

      send(){//websocket

      },

      listener(){

      }

    }
  }
</script>
